package org.seckill.dao;

import org.apache.ibatis.annotations.Param;
import org.seckill.entity.SuccessKilled;

/**
 * Created by ljd on 2021/1/4.
 */
public interface SuccessKilledDao {
    /**
     * 插入购买明细，可过滤重复
     * @param seckillId
     * @param userPhone
     * @return
     */
    int insertSuccessKilled(@Param("oid") long seckillId, @Param("userPhone") long userPhone);

    /**
     * 根据id查询SuccessKilled并携带产品信息实体
     * @param seckillId
     * @return
     */
    SuccessKilled queryByIdWidthSecill(@Param("seckillId") long seckillId,@Param("userPhone") long phone);
}
